
$(function () {
	$("#exchangeType1").change(function () {
		if ($("#exchangeType1").val() == 0) {
			$("#exchangeIdA1").html("<option value='0'>-----------\u7269\u54c1\u540d\u79f0-----------</option>");
		} else {
			if ($("#exchangeType1").val() == 1 || $("#exchangeType1").val() == 2 || $("#exchangeType1").val() == 3 || $("#exchangeType1").val() == 4 || $("#exchangeType1").val() == 5) {
				$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#exchangeType1").val(), success:function (msg) {
					$("#exchangeIdA1").html(msg);
				}});
			}
		}
	});
	$("#needType1").change(function () {
		if ($("#needType1").val() == 0) {
			$("#needIdA1").html("<option value='0'>-----------\u7269\u54c1\u540d\u79f0-----------</option>");
		} else {
			if ($("#needType1").val() == 1 || $("#needType1").val() == 2 || $("#needType1").val() == 3 || $("#needType1").val() == 4 || $("#needType1").val() == 5) {
				$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#needType1").val(), success:function (msg) {
					$("#needIdA1").html(msg);
				}});
			}
		}
	});
	$("#needType2").change(function () {
		if ($("#needType2").val() == 0) {
			$("#needIdA2").html("<option value='0'>-----------\u7269\u54c1\u540d\u79f0-----------</option>");
		} else {
			if ($("#needType2").val() == 1 || $("#needType2").val() == 2 || $("#needType2").val() == 3 || $("#needType2").val() == 4 || $("#needType2").val() == 5) {
				$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#needType2").val(), success:function (msg) {
					$("#needIdA2").html(msg);
				}});
			}
		}
	});
	$("#needType3").change(function () {
		if ($("#needType3").val() == 0) {
			$("#needIdA3").html("<option value='0'>-----------\u7269\u54c1\u540d\u79f0-----------</option>");
		} else {
			if ($("#needType3").val() == 1 || $("#needType3").val() == 2 || $("#needType3").val() == 3 || $("#needType3").val() == 4 || $("#needType3").val() == 5) {
				$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#needType3").val(), success:function (msg) {
					$("#needIdA3").html(msg);
				}});
			}
		}
	});
});

